package top.itmeans.yes.mapper;

import org.springframework.stereotype.Repository;
import top.itmeans.yes.entity.AdminRoleRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import top.itmeans.yes.entity.Resource;
import top.itmeans.yes.entity.Role;

import java.util.List;

/**
 * <p>
 * 后台用户和角色关系表 Mapper 接口
 * </p>
 *
 * @author Yiming.Cao
 * @since 2022-04-28
 */
@Repository
public interface AdminRoleRelationMapper extends BaseMapper<AdminRoleRelation> {

    List<Resource> getResourceList(Long id);

    List<Role> getRoleList(Long id);

}
